﻿using System;
using System.Collections.Generic;
using System.ComponentModel;

namespace AD.Pms.DataBase.Models.ZC_Log
{
    public partial class TblSearchHistory
    {
        public int Pkid { get; set; }
        public Guid? UserId { get; set; }
        public UserRole? UserRole { get; set; }
        public SearchType? SearchType { get; set; }
        public int? TextCount { get; set; }
        public int? ImageCount { get; set; }
        public int? DocCount { get; set; }
        public int? LinkCount { get; set; }
        public string ClientIp { get; set; }
        public string Browser { get; set; }
        public DateTime? CreateTime { get; set; }
        public string CreateBy { get; set; }
        public DateTime? UpdateTime { get; set; }
        public string UpdateBy { get; set; }
        public bool? IsDelete { get; set; }
    }


    public enum SearchType
    {
        /// <summary>
        /// 
        /// </summary>
        [Description("")]
        None = 0,
        /// <summary>
        /// 文本搜索
        /// </summary>
        [Description("text")]
        Text = 1,
        /// <summary>
        /// 图片搜索
        /// </summary>
        [Description("image")]
        Image = 2,
        /// <summary>
        /// 文档搜索
        /// </summary>
        [Description("doc")]
        Doc = 3,
        /// <summary>
        /// 链接搜索
        /// </summary>
        [Description("link")]
        Link = 4,
        /// <summary>
        /// 视频搜索
        /// </summary>
        [Description("video")]
        Video = 5
    }
    public enum UserRole
    {
        /// <summary>
        /// 没有会员
        /// </summary>
        [Description("none")]
        NONE = 0,
        /// <summary>
        /// 免费会员（活动赠送）
        /// </summary>
        [Description("free")]
        Free = 1,
        /// <summary>
        /// 普通会员
        /// </summary>
        [Description("normal")]
        Normal = 2,
        /// <summary>
        /// vip用户
        /// </summary>
        [Description("vip")]
        VIP = 3,
        /// <summary>
        /// svip用户
        /// </summary>
        [Description("svip")]
        SVIP = 4,
        /// <summary>
        /// 个性vip用户
        /// </summary>
        [Description("cvip")]
        CVIP = 5
    }
}
